package com.suemi.rpc.entity;

public class RpcResponse {

  private long requestId;

  private Object result;

  private Exception cause;

  public long getRequestId() {

    return requestId;
  }

  public void setRequestId(long requestId) {
    this.requestId = requestId;
  }

  public Object getResult() {
    return result;
  }

  public void setResult(Object result) {
    this.result = result;
  }

  public Exception getCause() {
    return cause;
  }

  public void setCause(Exception cause) {
    this.cause = cause;
  }

  @Override
  public String toString() {
    return "RpcResponse{" +
            "requestId=" + requestId +
            ", result=" + result +
            ", cause=" + cause +
            '}';
  }
}
